<template>
    <div class="content-box container mg-b-200">
        <div class="header mg-b-60">
            <div class="title fs-36 bold text-center">{{ contentData.title }}</div>
            <div class="sub-title mg-t-24 text-center">{{ contentData.subTitle }}</div>
        </div>
        <div class="flex gap-56" :class="{ 'flex-row-reverse': contentData.reverse }">
            <div class="left-side">
                <img class="img" :src="contentData.img" alt="">
            </div>
            <div class="right-side flex-1 flex-ai-c">
                <div class="asidetextbox mg-t-30">
                    <div class="bigtitle">{{ contentData.asidetitletop }}</div>
                    <div class="smalltitle">{{ contentData.asidetitlebottom }}</div>
                </div>
                <div v-for="(i, index) in contentData.list" :key="index" class="flex mg-t-24">
                    <img v-if="contentData.isCheckIcon" src="../assets/img/icon-check.png" alt="" class="icon-check"
                        :class="[i.iconType]">
                    <img v-else :src="i.icon" alt="" class="icon" :class="[i.iconType]">
                    <div class="mg-l-16">
                        <div class="bold fs-18">{{ i.name }}</div>
                        <div class="fc-gray fs-14 mg-t-10">{{ i.content }}</div>
                    </div>
                </div>
                <div class="btn" v-if="contentData.hasbtn" @click="topath(contentData.btnpath)">
                    查看更多
                </div>
            </div>
        </div>
    </div>
</template>
<script>

export default {
    props: {
        contentData: {
            type: Object
        }
    },
    data() {
        return {

        }
    },
    methods: {
        topath(path) {
            this.$router.push(path);
        }
    }
}
</script>
<style lang="scss" scoped>
.bigtitle {
    font-size: 24px;
    color: #202536;
    margin-bottom: 12px;
}

.smalltitle {
    font-size: 16px;
    color: #565868;
}

.img {
    width: 642px;
    height: auto;
}

.icon {
    width: 48px;
    height: 48px;
}

.icon-check {
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.gap-56 {
    gap: 56px;
}

.btn {
    margin-top: 60px;
    background-color: #3E5FF5;
    border-radius: 8px;
    width: 150px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #ffffff;
}
</style>